package com.liu.yubi.utils;

/**
 * @author lqh
 * @since 2025-06-03 23:55
 * 注册用户名输入清洗
 * (防止注册用户名 username="null")
 */
public class CheckUsernameUtils {

    public static boolean isSuspiciousInput(String input){
        if (input==null) return true;
        String lowerCase = input.trim ().toLowerCase ();
        return lowerCase.isEmpty () || "null".equals (lowerCase) || "none".equals (lowerCase) || "n/a".equals (lowerCase);
    }
}
